﻿using SDCloudSolution.SDCloud.Web.Models;

namespace SDCloudSolution.SDCloud.Web.Utils
{
    public static class StatusViewModelExtensions
    {
        public static string ToCssClass(this StatusViewModel status)
        {
            switch (status)
            {
                case StatusViewModel.Primary:
                    return "primary";
                case StatusViewModel.Warning:
                    return "warning";
                case StatusViewModel.Danger:
                    return "danger";
                case StatusViewModel.Success:
                    return "success";
                default:
                    return "default";
            }
        }
    }
}